public class Division02{
	public static void main(String args[]){
		for(int i=0;i<=1000;i++){
			if(i%3==0 && i%5==0 && i%7==0){
				System.out.println("the number is :" + i);
			}
		}
	}
}